<?php

namespace app\model;

use think\facade\Db;

class BookIntroBookRealBookTypeMidTypeModel extends \think\Model
{
    protected $table = "BookIntro_BookReal_BookType_MidType";


    public function getComeTimeAttr(string $value)
    {
        return substr($value, 0, 10);
    }

    public function getBookIntroBookRealBookTypeMidTypeController($libraryId)
    {
         return json(self::where("libraryId", $libraryId)->select());
//         echo Db::getLastSql();
    }

}